package com.gxa.util;

public class QueryInfo {

    //当前页面
    private int currentPage=1;

    //分页大小
    private int pagesize=5;

    //开始序号
    private int startIndex=1;

    /**
     * 计算开始序号
     * @return
     */
    public int getStartIndex() {
        this.startIndex=(this.currentPage-1)*this.pagesize;
        return startIndex;
    }


    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPagesize() {
        return pagesize;
    }

    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    }



}
